<template>
  <div class="Shopcart">
    <Shopcart></Shopcart>
    <TabBar :title="title"></TabBar>
  </div>
</template>
<script>
// @ is an alias to /src
import Shopcart from '@/components/Shopcart.vue'
import TabBar from '@/components/TabBar.vue'
export default {
  name: 'ShopcartView',
  data(){//组件中的data必须是一个函数
  return{
    title:'购物车'
  }
  },
  components: {
    Shopcart,
    TabBar
}
}
</script>